﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using RooHui.Tool;
using RooHui.Portal.Biz;
using RooHui.Infrastructure.Entities;
using RooHui.Portal.Biz.Model;
using RooHui.Infrastructure.Entities.Entity;
using RooHui.Application.CommonWebLogic;
using RooHui.Infrastructure.Entities.Enum;

namespace RooHui.Portal.Web.Controllers
{
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            return View();
        }

        public ActionResult Financing()
        {
            return View();
        }

        public ActionResult About()
        {
            return View();
        }

        public string calculator(decimal amount, decimal rate = 0, decimal time = 0)
        {
            return (amount * (time / 365) * (rate/100)).ToString("F2");
        }

        public void Log(string msg)
        {
            LogHelper.Write(CommonLogger.Web, LogLevel.Info, msg);
        }
    }
}
